cmake_minimum_required(VERSION 3.16)

project(ffplay_gui LANGUAGES C)

# set(CMAKE_CXX_STANDARD 17)
# set(CMAKE_CXX_STANDARD_REQUIRED ON)

# find_package(FFmpeg REQUIRED)
# find_package(SDL REQUIRED)

add_executable(ffplay_gui
    ffplay.c
    config.h
    config_components.h
    cmdutils.h cmdutils.c
    fopen_utf8.h
    opt_common.h opt_common.c
)
target_include_directories(ffplay_gui PUBLIC
    "D:/3rd/install/SDL3/include"
    "D:/3rd/git_repo/ffmpeg/out/x64/include"
)
target_link_directories(ffplay_gui PUBLIC
    "D:/3rd/install/SDL3/lib"
    "D:/3rd/git_repo/ffmpeg/out/x64/lib"
)
target_link_libraries(ffplay_gui PUBLIC
    libdav1d.lib
    libavcodec.lib
    libavfilter.lib
    libavformat.lib
    libavutil.lib
    libswresample.lib
    libswscale.lib
    libavdevice.lib
    SDL3-static.lib
    Imm32.lib
    Winmm.lib
    Setupapi.lib
    Version.lib
    Bcrypt.lib
    secur32.lib
    mfuuid.lib ole32.lib strmiids.lib user32.lib vfw32.lib shlwapi.lib
    ws2_32.lib
)

